Optimal. Leaf size=102 \[ \frac {2 b x^2 \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{9 c}+\frac {4 b \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{9 c^3}+\frac {1}{3} x^3 \left (a+b \sin ^{-1}(c x)\right )^2-\frac {4 b^2 x}{9 c^2}-\frac {2}{27} b^2 x^3 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.15, antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {4627, 4707, 4677, 8, 30} \[ \frac {2 b x^2 \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{9 c}+\frac {4 b \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{9 c^3}+\frac {1}{3} x^3 \left (a+b \sin ^{-1}(c x)\right )^2-\frac {4 b^2 x}{9 c^2}-\frac {2}{27} b^2 x^3 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 30
Rule 4627
Rule 4677
Rule 4707
Rubi steps
\begin {align*} \int x^2 \left (a+b \sin ^{-1}(c x)\right )^2 \, dx &=\frac {1}{3} x^3 \left (a+b \sin ^{-1}(c x)\right )^2-\frac {1}{3} (2 b c) \int \frac {x^3 \left (a+b \sin ^{-1}(c x)\right )}{\sqrt {1-c^2 x^2}} \, dx\\ &=\frac {2 b x^2 \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{9 c}+\frac {1}{3} x^3 \left (a+b \sin ^{-1}(c x)\right )^2-\frac {1}{9} \left (2 b^2\right ) \int x^2 \, dx-\frac {(4 b) \int \frac {x \left (a+b \sin ^{-1}(c x)\right )}{\sqrt {1-c^2 x^2}} \, dx}{9 c}\\ &=-\frac {2}{27} b^2 x^3+\frac {4 b \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{9 c^3}+\frac {2 b x^2 \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{9 c}+\frac {1}{3} x^3 \left (a+b \sin ^{-1}(c x)\right )^2-\frac {\left (4 b^2\right ) \int 1 \, dx}{9 c^2}\\ &=-\frac {4 b^2 x}{9 c^2}-\frac {2 b^2 x^3}{27}+\frac {4 b \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{9 c^3}+\frac {2 b x^2 \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{9 c}+\frac {1}{3} x^3 \left (a+b \sin ^{-1}(c x)\right )^2\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.18, size = 95, normalized size = 0.93 \[ \frac {1}{3} \left (x^3 \left (a+b \sin ^{-1}(c x)\right )^2-\frac {2 b \left (-3 c^2 x^2 \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )-6 \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )+b c^3 x^3+6 b c x\right )}{9 c^3}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 111, normalized size = 1.09 \[ \frac {9 \, b^{2} c^{3} x^{3} \arcsin \left (c x\right )^{2} + 18 \, a b c^{3} x^{3} \arcsin \left (c x\right ) + {\left (9 \, a^{2} - 2 \, b^{2}\right )} c^{3} x^{3} - 12 \, b^{2} c x + 6 \, {\left (a b c^{2} x^{2} + 2 \, a b + {\left (b^{2} c^{2} x^{2} + 2 \, b^{2}\right )} \arcsin \left (c x\right )\right )} \sqrt {-c^{2} x^{2} + 1}}{27 \, c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.39, size = 194, normalized size = 1.90 \[ \frac {1}{3} \, a^{2} x^{3} + \frac {{\left (c^{2} x^{2} - 1\right )} b^{2} x \arcsin \left (c x\right )^{2}}{3 \, c^{2}} + \frac {2 \, {\left (c^{2} x^{2} - 1\right )} a b x \arcsin \left (c x\right )}{3 \, c^{2}} + \frac {b^{2} x \arcsin \left (c x\right )^{2}}{3 \, c^{2}} - \frac {2 \, {\left (c^{2} x^{2} - 1\right )} b^{2} x}{27 \, c^{2}} + \frac {2 \, a b x \arcsin \left (c x\right )}{3 \, c^{2}} - \frac {2 \, {\left (-c^{2} x^{2} + 1\right )}^{\frac {3}{2}} b^{2} \arcsin \left (c x\right )}{9 \, c^{3}} - \frac {14 \, b^{2} x}{27 \, c^{2}} - \frac {2 \, {\left (-c^{2} x^{2} + 1\right )}^{\frac {3}{2}} a b}{9 \, c^{3}} + \frac {2 \, \sqrt {-c^{2} x^{2} + 1} b^{2} \arcsin \left (c x\right )}{3 \, c^{3}} + \frac {2 \, \sqrt {-c^{2} x^{2} + 1} a b}{3 \, c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 126, normalized size = 1.24 \[ \frac {\frac {a^{2} c^{3} x^{3}}{3}+b^{2} \left (\frac {c^{3} x^{3} \arcsin \left (c x \right )^{2}}{3}+\frac {2 \arcsin \left (c x \right ) \left (c^{2} x^{2}+2\right ) \sqrt {-c^{2} x^{2}+1}}{9}-\frac {2 c^{3} x^{3}}{27}-\frac {4 c x}{9}\right )+2 a b \left (\frac {c^{3} x^{3} \arcsin \left (c x \right )}{3}+\frac {c^{2} x^{2} \sqrt {-c^{2} x^{2}+1}}{9}+\frac {2 \sqrt {-c^{2} x^{2}+1}}{9}\right )}{c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 142, normalized size = 1.39 \[ \frac {1}{3} \, b^{2} x^{3} \arcsin \left (c x\right )^{2} + \frac {1}{3} \, a^{2} x^{3} + \frac {2}{9} \, {\left (3 \, x^{3} \arcsin \left (c x\right ) + c {\left (\frac {\sqrt {-c^{2} x^{2} + 1} x^{2}}{c^{2}} + \frac {2 \, \sqrt {-c^{2} x^{2} + 1}}{c^{4}}\right )}\right )} a b + \frac {2}{27} \, {\left (3 \, c {\left (\frac {\sqrt {-c^{2} x^{2} + 1} x^{2}}{c^{2}} + \frac {2 \, \sqrt {-c^{2} x^{2} + 1}}{c^{4}}\right )} \arcsin \left (c x\right ) - \frac {c^{2} x^{3} + 6 \, x}{c^{2}}\right )} b^{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int x^2\,{\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )}^2 \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.06, size = 170, normalized size = 1.67 \[ \begin {cases} \frac {a^{2} x^{3}}{3} + \frac {2 a b x^{3} \operatorname {asin}{\left (c x \right )}}{3} + \frac {2 a b x^{2} \sqrt {- c^{2} x^{2} + 1}}{9 c} + \frac {4 a b \sqrt {- c^{2} x^{2} + 1}}{9 c^{3}} + \frac {b^{2} x^{3} \operatorname {asin}^{2}{\left (c x \right )}}{3} - \frac {2 b^{2} x^{3}}{27} + \frac {2 b^{2} x^{2} \sqrt {- c^{2} x^{2} + 1} \operatorname {asin}{\left (c x \right )}}{9 c} - \frac {4 b^{2} x}{9 c^{2}} + \frac {4 b^{2} \sqrt {- c^{2} x^{2} + 1} \operatorname {asin}{\left (c x \right )}}{9 c^{3}} & \text {for}\: c \neq 0 \\\frac {a^{2} x^{3}}{3} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________